package com.cxhc.system.dto;

import com.cxhc.system.domain.app.EventApprovalFile;
import lombok.Data;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.List;


@Data
@Accessors(chain = true)
public class EventApprovalDto {

    @NotBlank(message = "审批主题不能为空")
    private String title;

    @NotBlank(message = "具体事项不能为空")
    private String content;

    @NotBlank(message = "开始时间不能为空")
    private String startAt;

    @NotBlank(message = "结束时间不能为空")
    private String endAt;

    // 附件
    private List<EventApprovalFile> fileList;

    @NotNull(message = "下级审批人不能为空")
    private Long userId;

    @NotBlank(message = "下级审批人不能为空")
    private String userName;

    @NotBlank(message = "下级审批人部门不能为空")
    private String deptName;

}
